<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 任务详情</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="row">
    <div class="col-sm-9">
        <div class="wrapper wrapper-content animated fadeInUp">
            <div class="ibox">
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="m-b-md">
                                <a href="#" class="btn btn-white btn-xs pull-right" onclick="window.location.href='/epidMissionList';">返回</a>
                                <h2 th:text="'任务编号:' + ${epidMissionRecordBean.getMissionId()}">任务编号</h2>
                            </div>
                            <dl class="dl-horizontal">
                                <dt>状态：</dt>
                                <dd th:switch="${epidMissionRecordBean.getMissionState()}">
                                    <span th:case="0" class="label label-primary" align='center' valian='middle'>未开始</span>
                                    <span th:case="1" class="label label-primary" align='center' valian='middle'>流调中</span>
                                    <span th:case="2" class="label label-primary" align='center' valian='middle'>流调完成</span>
                                    <span th:case="3" class="label label-primary" align='center' valian='middle'>已取消</span>
                                    <span th:case="4" class="label label-primary" align='center' valian='middle'>已完成</span>
                                    <span th:case="5" class="label label-primary" align='center' valian='middle'>二次确认中</span>
                                    <span th:case="6" class="label label-primary" align='center' valian='middle'>确认完成</span>
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-5">
                            <dl class="dl-horizontal">

                                <dt>任务发布者id ：</dt>
                                <dd th:text="${epidMissionRecordBean.getMissionPublisherId()}">XXXXX</dd>
                                <dt>任务发布者姓名：</dt>
                                <dd th:text="${epidMissionRecordBean.getMissionPublisherName()}">XXXXX</dd>


                                <dt>流调人员id：</dt>
                                <dd th:text="${epidMissionRecordBean.getAssigneeId()}">XXXXX</dd>
                                <dt>流调人员姓名 ：</dt>
                                <dd th:text="${epidMissionRecordBean.getAssigneeName()}">XXXXX</dd>


                                <dt>流调对象id：</dt>
                                <dd th:text="${epidMissionRecordBean.getPatientId()}">XXXXX</dd>
                                <dt>流调对象姓名：</dt>
                                <dd th:text="${epidMissionRecordBean.getPatientName()}">XXXXX</dd>
                            </dl>
                        </div>
                        <div class="col-sm-7" id="cluster_info">
                            <dl class="dl-horizontal">

                                <dt>流调时间：</dt>
                                <dd th:text="${epidMissionRecordBean.getAssignTime()}">XXXXX</dd>
                                <dt>流调地区：</dt>
                                <dd th:text="${epidMissionRecordBean.getAssignPlace()}">XXXXX</dd>
                                <dt>疾病名称：</dt>
                                <dd th:text="${epidMissionRecordBean.getDiseaseName()}">XXXXX</dd>
                            </dl>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-sm-12">
                            <dl class="dl-horizontal">
                                <dt>模板选择：</dt>
                                <dd th:text="${epidMissionRecordBean.getEpidTemplateId()}">XXXXX</dd>
                            </dl>
                        </div>
                    </div>
                    <div class="row m-t-sm">
                        <div class="col-sm-12">
                            <div class="panel blank-panel">
                                <div class="panel-heading">
                                    <div class="panel-options">
                                        <ul class="nav nav-tabs">

                                            <li class=""><a href="epid_recorddetail.html#tab-2" data-toggle="tab">最后更新</a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>

                                <div class="panel-body">

                                    <div class="tab-content">

                                        <div class="tab-pane" id="tab-2">

                                            <table class="table table-striped">
                                                <thead>
                                                <tr>
                                                    <th align='center' valian='middle'>状态</th>
                                                    <th align='center' valian='middle' >人员</th>
                                                    <th align='center' valian='middle'>开始时间</th>
                                                    <th align='center' valian='middle'>结束时间</th>
                                                    <th align='center' valian='middle' >说明</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <tr>
                                                    <td th:switch="${epidMissionRecordBean.getMissionState()}">
                                                        <span th:case="0" class="label label-primary" align='center' valian='middle'>未开始</span>
                                                        <span th:case="1" class="label label-primary" align='center' valian='middle'>流调中</span>
                                                        <span th:case="2" class="label label-primary" align='center' valian='middle'>流调完成</span>
                                                        <span th:case="3" class="label label-primary" align='center' valian='middle'>已取消</span>
                                                        <span th:case="4" class="label label-primary" align='center' valian='middle'>已完成</span>
                                                        <span th:case="5" class="label label-primary" align='center' valian='middle'>流调完成</span>
                                                        <span th:case="6" class="label label-primary" align='center' valian='middle'>流调完成</span>

                                                    </td>
                                                    <td th:text="${epidMissionRecordBean.getAssigneeName()}">
                                                        XXX
                                                    </td>
                                                    <td th:text="${epidMissionRecordBean.getMissionPublishTime()}">
                                                        XXX
                                                    </td>
                                                    <td th:text="${epidMissionRecordBean.getMissionFinishedTime()}">
                                                        XXX
                                                    </td>
                                                    <td>
                                                        <a th:href="@{'/epidTemplateCheck?missionId='+${epidMissionRecordBean.getMissionId()}}" class="btn btn-white btn-xs">流调模板</a>
                                                    </td>

                                                </tr>
                                                <tr th:if="${epidMissionRecordBean.getMissionState()}==5 or ${epidMissionRecordBean.getMissionState()}==6 or ${epidMissionRecordBean.getSecondAssigneeId()}!=null">
                                                    <td th:switch="${epidMissionRecordBean.getMissionState()}">
                                                        <span th:case="3" class="label label-primary" align='center' valian='middle'>已取消</span>
                                                        <span th:case="4" class="label label-primary" align='center' valian='middle'>已完成</span>
                                                        <span th:case="5" class="label label-primary" align='center' valian='middle'>二次确认中</span>
                                                        <span th:case="6" class="label label-primary" align='center' valian='middle'>确认完成</span>
                                                    </td>
                                                    <td th:text="${epidMissionRecordBean.getSecondAssigneeName()}">
                                                        XXX
                                                    </td>
                                                    <td th:text="${epidMissionRecordBean.getSecondPublishTime()}">
                                                        XXX
                                                    </td>
                                                    <td th:text="${epidMissionRecordBean.getSecondFinishedTime()}">
                                                        XXX
                                                    </td>
                                                    <td th:text="${epidMissionRecordBean.getSecondAnswer()}"></td>

                                                </tr>



                                                </tbody>
                                            </table>

                                        </div>
                                    </div>

                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-sm-3">
        <div class="wrapper wrapper-content project-manager">
            <!--<h4>任务描述</h4>-->
            <!--<img src="img/wenku_logo.png" class="img-responsive">-->
            <!--<p class="small">-->
                <!--<br th:text="${epidMissionRecordBean.getMissionDetails()}">-->
            <!--</p>-->
            <div class="m-t-md">
                <a th:href="@{'/epidMissionCancel?missionId='+${epidMissionRecordBean.getMissionId()}}" class="btn btn-xs btn-primary">任务取消</a>
            </div>
            <div class="m-t-md">
                <a th:href="@{'/epidRecordDoubleCheck?missionId='+${epidMissionRecordBean.getMissionId()}}" class="btn btn-xs btn-primary" >二次确认</a>
            </div>
            <div class="m-t-md">
                <a th:href="@{'/epidMissionFinish?missionId='+${epidMissionRecordBean.getMissionId()}}" class="btn btn-xs btn-primary">任务完成，同意加入数据库</a>

            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>



<!-- 自定义js -->
<script src="js/content.js?v=1.0.0"></script>


<script>
    $(document).ready(function () {

        $('#loading-example-btn').click(function () {
            btn = $(this);
            simpleLoad(btn, true)

            // Ajax example
            //                $.ajax().always(function () {
            //                    simpleLoad($(this), false)
            //                });

            simpleLoad(btn, false)
        });
    });

    function simpleLoad(btn, state) {
        if (state) {
            btn.children().addClass('fa-spin');
            btn.contents().last().replaceWith(" Loading");
        } else {
            setTimeout(function () {
                btn.children().removeClass('fa-spin');
                btn.contents().last().replaceWith(" Refresh");
            }, 2000);
        }
    }
</script>




</body>

</html>
